import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index'
import Account from '@/pages/user/account'
import Login from '@/pages/user/login'
import Recordlist from '@/pages/user/list'
import Balancelist from '@/pages/user/balancelist'
import Setpaypaw from '@/pages/user/setpaypaw'
import Checkidentity from '@/pages/user/checkidentity'
import Bind from '@/pages/user/bind'
import Forward from '@/pages/user/forward'
import Forgetpaw from '@/pages/user/forgetpaw'
//使用vue插件
Vue.use(Router)

export default new Router({
  mode:'history', //去掉/#/
  base:'/html/wechat',
  routes: [
    {
      path: '/',
      name: '桃宝宝',
      component: Index
    },{
      path: '/login',
      name: '账号登录',
      component: Login
    },{
      path: '/account',
      name: '个人账户',
      component: Account
    },{
      path: '/recordlist',
      name: '魅力值记录',
      component: Recordlist
    },{
      path: '/setpaypaw',
      name: '设置支付密码',
      component: Setpaypaw
    },{
      path: '/checkidentity',
      name: '资质审核',
      component: Checkidentity
    },{
      path: '/bind',
      name: '绑定支付宝',
      component: Bind
    },{
      path: '/forward',
      name: '提现',
      component: Forward
    },{
      path: '/balancelist',
      name: '余额记录',
      component: Balancelist
    },{
      path: '/forgetpaw',
      name: '忘记密码',
      component: Forgetpaw
    }
  ]
})
